 <?
 if(!$files): ?>
 		<div class="bigph_slide">		
			<img id="big_image_slide" src="<?= Yii::app()->controller->imagePath.'images/foto_slider_zagl.png'; ?>">
		</div>
 <? else : ?>
		<div class="bigph_slide">
			<?php 
  			$img = 'http://'.$_SERVER['HTTP_HOST'].Yii::app()->request->baseUrl.
				  ImageHelper::thumb('296','220','/' . $files[0]->file,array('method' => 'adaptiveResize'));
		  ?>
			<img id="big_image_slide" src="<?=$img?>">
		</div>
		
		<? if (count($files)>1) : ?>
		<div id="sliderContent" class="ui-corner-all slider_list">		
			<div class="viewer ui-corner-all">
			<div class="content-conveyor ui-helper-clearfix">
			<?php for($i=0;$i<(count($files)-1);$i++):?>
				<?php 
  				$img_small = 'http://'.$_SERVER['HTTP_HOST'].Yii::app()->request->baseUrl.
					  ImageHelper::thumb('66','64','/' . $files[$i]->file,array('method' => 'adaptiveResize'));
					$img_big = 'http://'.$_SERVER['HTTP_HOST'].Yii::app()->request->baseUrl.
					  ImageHelper::thumb('296','220','/' . $files[$i]->file,array('method' => 'adaptiveResize'));
			  ?>
				<div class="item">
					<a href="javascript:void(0)" id="slide_<?=$i?>" onclick="change_img('<?=$img_big?>', 'slide_<?=$i?>')">
						<img src="<?=$img_small?>" height="60px">
					</a>
				</div>	
			<?php endfor ?>
			</div>
			</div>
			<div class="wrap_sl"><div id="slider2"></div></div>
		</div>	
		<? endif; ?>
<? endif; ?>


